#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int y_h_s_j[10][20] = { 0 };

	for (int i = 0; i < 10; i++)
		y_h_s_j[i][0] = 1;

	for (int i = 1; i < 10; i++)
	{
		for (int j = 1; j < i; j++)
		{
			y_h_s_j[i][j] = y_h_s_j[i - 1][j] + y_h_s_j[i - 1][j - 1];
		}
	}
	for (int i = 0; i < 10; i++)
	{
		for (int j = 0; j < i; j++)
			printf("%d ", y_h_s_j[i][j]);
		printf("\n");
	}

	return 0;
}